﻿namespace HQS.TokenInterpolation.Tokens
{
    [Token(Name = "compute")]
    public class Compute : AbstractToken
    {
        [TokenProperty("format", false)]
        public string Format { get; set; }

        [TokenProperty("expression", true)]
        public string Expression { get; set; }

        protected override TokenRuntimeValue OnAccept(IDataSourcesVisitor dataSourcesVisitor)
        {
            return dataSourcesVisitor.Visit(this);
        }
    }
}